package com.company.management.mapper;

import com.company.management.modal.entity.Post;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description:
 * @Author: zyj
 * @Date: 2022-09-6 9:23
 * @Version v1.0
 **/
@Repository
public interface PostMapper {
    @Select("select * from t_post where post_id = #{postId} ")
    Post findPostById(String postId);

    @Select("select * from t_post")
    List<Post> listAll();

}

